package com.ly.heart.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ly.heart.mapper.KingInquiryQuotationMapper;
import com.ly.heart.service.IKingInquiryQuotationService;
import org.springframework.stereotype.Service;
import com.ly.heart.domain.KingInquiryQuotationEntity;

import javax.annotation.Resource;

/**
 * 金蝶-询价单报价采纳信息Service业务层处理
 *
 * @author cxl
 * @date 2024-07-11
 */
@Service
public class KingInquiryQuotationServiceImpl extends ServiceImpl<KingInquiryQuotationMapper,KingInquiryQuotationEntity> implements IKingInquiryQuotationService {

    @Resource
    private KingInquiryQuotationMapper kingInquiryQuotationMapper;

    /**
     * 查询金蝶-询价单报价采纳信息
     *
     * @param id 金蝶-询价单报价采纳信息ID
     * @return 金蝶-询价单报价采纳信息
     */
    @Override
    public KingInquiryQuotationEntity selectKingInquiryQuotationEntityById(String id)
    {
        return kingInquiryQuotationMapper.selectKingInquiryQuotationEntityById(id);
    }

    /**
     * 查询金蝶-询价单报价采纳信息列表
     *
     * @param kingInquiryQuotationEntity 金蝶-询价单报价采纳信息
     * @return 金蝶-询价单报价采纳信息
     */
    @Override
    public List<KingInquiryQuotationEntity> selectKingInquiryQuotationEntityList(KingInquiryQuotationEntity kingInquiryQuotationEntity)
    {
        return kingInquiryQuotationMapper.selectKingInquiryQuotationEntityList(kingInquiryQuotationEntity);
    }

    /**
     * 新增金蝶-询价单报价采纳信息
     *
     * @param kingInquiryQuotationEntity 金蝶-询价单报价采纳信息
     * @return 结果
     */
    @Override
    public int insertKingInquiryQuotationEntity(KingInquiryQuotationEntity kingInquiryQuotationEntity)
    {
        return kingInquiryQuotationMapper.insertKingInquiryQuotationEntity(kingInquiryQuotationEntity);
    }

    /**
     * 修改金蝶-询价单报价采纳信息
     *
     * @param kingInquiryQuotationEntity 金蝶-询价单报价采纳信息
     * @return 结果
     */
    @Override
    public int updateKingInquiryQuotationEntity(KingInquiryQuotationEntity kingInquiryQuotationEntity)
    {
        return kingInquiryQuotationMapper.updateKingInquiryQuotationEntity(kingInquiryQuotationEntity);
    }

    /**
     * 批量删除金蝶-询价单报价采纳信息
     *
     * @param ids 需要删除的金蝶-询价单报价采纳信息ID
     * @return 结果
     */
    @Override
    public int deleteKingInquiryQuotationEntityByIds(String[] ids)
    {
        return kingInquiryQuotationMapper.deleteKingInquiryQuotationEntityByIds(ids);
    }

    /**
     * 删除金蝶-询价单报价采纳信息信息
     *
     * @param id 金蝶-询价单报价采纳信息ID
     * @return 结果
     */
    @Override
    public int deleteKingInquiryQuotationEntityById(String id)
    {
        return kingInquiryQuotationMapper.deleteKingInquiryQuotationEntityById(id);
    }
}
